package h_eekwan.basic;

public class J15_Printer {
	public static void main(String[] args) {
		Printer p01 = new Printer();
		p01.Print();
		InkjetPrinter p02 = new InkjetPrinter();
		p02.Print();
		LaserPrint p03 = new LaserPrint();
		p03.Print();
		
	} // 메인
} //클래스

// 부모 클래스
class Printer {
	public String model;
	public String maker;
	public String type;
	public int papers;
	public int remains;
	
	

	public void Print() {
		System.out.println("프린터 입니다~");
		
	}
	
}
// 자식 클래스
class InkjetPrinter extends Printer {
	
	public int InkRemains;
	
	
	
	@Override
	public void Print() {
		System.out.println("잉크젯 프린터입니다");
		
	}
	
}

class LaserPrint extends Printer{
	public int tonerRemains;
	@Override
	public void Print() {
		System.out.println("레이져프린터예요");
		
	}
}